package es.ucm.fdi.healthpred.vista;

import java.util.ArrayList;

import es.ucm.fdi.healthpred.modelo.beans.Persona;

/**
 * Recoge todos los datos relativos a un cliente (generales, hobbies y hechos
 * cl&iacute;nicos) y mantiene unos marcadores para saber si los hechos/hobbies
 * est&aacute;n o no en la BD.
 * 
 * @since 1.0
 * 
 * @version 1.0
 * 
 * @author &Aacute;lvaro G&oacute;mez Porris
 * @author V&iacute;ctor L&oacute;pez Monte
 * @author Carlos Rodr&iacute;guez Colliga
 * 
 */
public class DatosCliente {

	private ArrayList<Object> historial;
	private ArrayList<Boolean> historialBD;
	private ArrayList<Object> hobbies;
	private ArrayList<Boolean> hobbiesBD;
	private Persona persona;

	/**
	 * 
	 */
	public DatosCliente() {
		persona = new Persona();
		historial = new ArrayList<Object>();
		historialBD = new ArrayList<Boolean>();
		hobbies = new ArrayList<Object>();
		hobbiesBD = new ArrayList<Boolean>();
	}

	/**
	 * 
	 */
	public DatosCliente(Persona persona, ArrayList<Object> historial,
			ArrayList<Object> hobbies) {
		this.persona = persona;
		this.historial = historial;
		historialBD = new ArrayList<Boolean>();
		for (int i = 0; i < historial.size(); i++) {
			historialBD.add(new Boolean(true));
		}
		this.hobbies = hobbies;
		hobbiesBD = new ArrayList<Boolean>();
		for (int i = 0; i < hobbies.size(); i++) {
			hobbiesBD.add(new Boolean(true));
		}
	}

	/**
	 * @return
	 */
	public ArrayList<Object> getHistorial() {
		return historial;
	}

	/**
	 * @return the historialBD
	 */
	public ArrayList<Boolean> getHistorialBD() {
		return historialBD;
	}

	/**
	 * @return
	 */
	public ArrayList<Object> getHobbies() {
		return hobbies;
	}

	/**
	 * @return the hobbiesBD
	 */
	public ArrayList<Boolean> getHobbiesBD() {
		return hobbiesBD;
	}

	/**
	 * @return
	 */
	public Persona getPersona() {
		return persona;
	}

	/**
	 * @param historial
	 */
	public void setHistorial(ArrayList<Object> historial) {
		this.historial = historial;
	}

	/**
	 * @param historialBD
	 *            the historialBD to set
	 */
	public void setHistorialBD(ArrayList<Boolean> historialBD) {
		this.historialBD = historialBD;
	}

	/**
	 * @param hobbies
	 */
	public void setHobbies(ArrayList<Object> hobbies) {
		this.hobbies = hobbies;
	}

	/**
	 * @param hobbiesBD
	 *            the hobbiesBD to set
	 */
	public void setHobbiesBD(ArrayList<Boolean> hobbiesBD) {
		this.hobbiesBD = hobbiesBD;
	}

	/**
	 * @param persona
	 */
	public void setPersona(Persona persona) {
		this.persona = persona;
	}

}
